import { createApp } from 'vue'
import App from '@/App.vue';
import router from "@/router/index.js";

const app = createApp(App);

app.use(router);
// 检查查询参数以确定要导航的路由
const queryParams = new URLSearchParams(window.location.search);
if (queryParams.get('source') === 'popup') {
    router.push('/popup').then(r => {
        console.log("启动弹出式界面");
    });
}
// else {
//     router.push('/home').then(r => {
//         console.log("访问首页");
//     });
// }
app.mount('#app')
